package com.changgou.goods.feign;

import com.changgou.goods.pojo.Spu;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <dl>
 * <dd>描述: ~节点业务逻辑实现</dd>
 * <dd>创建时间：  11:44 2020/4/9</dd>
 * <dd>创建人： zz</dd>
 * <dt>版本历史: </dt>
 * <pre>
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2020/4/9      guodong       1.0        1.0 Version
 * </pre>
 * </dl>
 */
@FeignClient(name = "goods")
@RequestMapping("spu")
public interface SpuFeign {

    @GetMapping("/{id}")
    Spu findById(@PathVariable("id") String id);

    @GetMapping("/one/{spuId}")
    public Spu findOne(@PathVariable(value = "spuId") String spuId);
}
